export default class Queue {
	#items = []
	enqueue(element) {
		this.#items.push(element)
	}
	dequeue() {
		return this.#items.shift()
	}
	peek() {
		if (isEmpty) {
			return undefined
		}
		return this.#items[0]
	}
	isEmpty() {
		return this.#items.length === 0
	}
	size() {
		return this.#items.length
	}
	clear() {
		this.#items = []
	}
}
